import java.util.Scanner;

public class Test19092301 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a =scanner.nextInt();
		float c;
		c =(a-32)*5/9;
		System.out.printf("%4f",c);
		scanner.close();
	}
}
